package com.yxq.mdt.app.modules.search.prestener;

import com.yxq.mdt.app.base.ibase.IBaseContract;
import com.yxq.mdt.app.modules.search.bean.SearchBean;
import com.yxq.mdt.app.modules.search.bean.SearchGroupBean;
import com.yxq.mdt.app.modules.search.bean.SearchTopicBean;
import com.yxq.mdt.app.modules.search.bean.SearchUserBean;

public interface ISearchContract extends IBaseContract {

    interface View extends IBaseView {

        void onLoadSuccess(SearchBean searchBean);

        void onLoadFailed(String err);

        void onLoadUserSuccess(SearchUserBean searchUserBean);

        void onLoadUserFailed(String err);

        void onLoadGroupSuccess(SearchGroupBean searchGroupBean);

        void onLoadGroupFailed(String err);

        void onLoadTopicSuccess(SearchTopicBean searchTopicBean);

        void onLoadTopicFailed(String err);
    }


    interface Presenter extends IBasePresenter {

        void search(String keyword, String defaultCat);

    }
}
